package com.my.controller;

import com.my.model.bean.Employee;
import com.my.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    EmployeeService employeeService;

    @RequestMapping("/getAll")
    public String lookAllEmployee() throws InterruptedException {
        List<Employee> allEmployee = employeeService.getAllEmployee();
        return "2023";
    }
}
